import request from '@/utils/request'

export const getPetAll = (params) => {
    return request({
        url: '/owners/pet',
        params
      })
}

//所属楼栋
export const getHouseList = (params) => {
  return request({
      url: '/house/building?community_code='+params,
      
    })
}

//所属房产
export const getHouse = (params) => {
  return request({
      url: '/house/index?building_code='+params,
    })
}

//所属房产
export const getMemList = (params) => {
  return request({
      url: '/owners/member?house_code='+params,
    })
}


//提交
export const addPet = (data) => {
  return request({
      method:'post',
      url: '/owners/pet',
      data
    })
}

//回显
export const reviewPet = (id) => {
  return request({
      url: '/owners/pet/'+id,
    })
}

///修改
export const editPet = (data) => {
  return request({
      method:'put',
      url: '/owners/pet/'+data.id,
      data
    })
}

//删除
export const delPet = (id) => {
  return request({
      method:'delete',
      url: '/owners/pet/'+ id,
    })
}